import pytest
from common.db_creator import DbCreator

@pytest.fixture(scope="session")#前置条件
def mysql_connect():
    print("mysql连接！！！！")
    mysql = DbCreator().mysql_creator(data_type=2)
    return mysql

@pytest.fixture(scope="session")
def redis_connect():
    print("redis连接！！！！")
    redis = DbCreator().redis_creator()
    return redis


